.. _ocamediaclock: 1.2.6 OcaMediaClock ==================== Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaAgent ` : :ref:`OcaMediaClock ` .. cpp:class:: OcaMediaClock: OcaAgent **DEPRECATED CLASS** *Replaced by* **OcaMediaClock3** A media clock, internal or external. **Properties**: .. _ocamediaclock_classid: .. cpp:member:: static const OcaClassID ClassID = "1.2.6" This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocamediaclock_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 3 This property has id ``1.2``. .. _ocamediaclock_currentrate: .. cpp:member:: OcaMediaClockRate CurrentRate Current clock rate This property has id ``3.4``. .. _ocamediaclock_domainid: .. cpp:member:: OcaUint16 DomainID Clock domain ID. Arbitrary value. This property has id ``3.2``. .. _ocamediaclock_lockstate: .. cpp:member:: OcaMediaClockLockState LockState Lock state of clock. This property has id ``3.5``. .. _ocamediaclock_ratessupported: .. cpp:member:: OcaList RatesSupported List of supported rates This property has id ``3.3``. .. _ocamediaclock_type: .. cpp:member:: OcaMediaClockType Type Type of clock. This property has id ``3.1``. Properties inherited from :ref:`ocaagent`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaAgent::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaAgent::ClassVersion ` - :cpp:texpr:`OcaString` :ref:`OcaAgent::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaAgent::Owner ` **Methods**: .. _ocamediaclock_gettype: .. cpp:function:: OcaStatus GetType(OcaMediaClockType &Type) Gets the value of the **Type** property. The return value indicates whether the value was successfully retrieved. This method has id ``3.1``. - :cpp:expr:`Type`: Output parameter. .. _ocamediaclock_settype: .. cpp:function:: OcaStatus SetType(OcaMediaClockType Type) Sets the value of the **Type** property. The return value indicates whether the value was successfully set. Optional method, may not be supported in all implementations. This method has id ``3.2``. - :cpp:expr:`Type`: Input parameter. .. _ocamediaclock_getdomainid: .. cpp:function:: OcaStatus GetDomainID(OcaUint16 &ID) Gets the value of the **DomainID** property. The return value indicates whether the value was successfully retrieved. This method has id ``3.3``. - :cpp:expr:`ID`: Output parameter. .. _ocamediaclock_setdomainid: .. cpp:function:: OcaStatus SetDomainID(OcaUint16 ID) Sets the value of the **DomainID** property. The return value indicates whether the value was successfully set. Optional method, may not be supported in all implementations. This method has id ``3.4``. - :cpp:expr:`ID`: Input parameter. .. _ocamediaclock_getsupportedrates: .. cpp:function:: OcaStatus GetSupportedRates(OcaList &ID) Gets the list of supported sampling rates. The return value indicates whether the list was successfully retrieved. This method has id ``3.5``. - :cpp:expr:`ID`: Output parameter. .. _ocamediaclock_getrate: .. cpp:function:: OcaStatus GetRate(OcaMediaClockRate &rate) Gets the current sampling rate. The return value indicates whether the value was successfully retrieved. This method has id ``3.6``. - :cpp:expr:`rate`: Output parameter. .. _ocamediaclock_setrate: .. cpp:function:: OcaStatus SetRate(OcaMediaClockRate rate) Sets the sampling rate. The return value indicates whether the rate was successfully set. This method has id ``3.7``. - :cpp:expr:`rate`: Input parameter. .. _ocamediaclock_getlockstate: .. cpp:function:: OcaStatus GetLockState(OcaMediaClockLockState &state) Gets the current media clock lock state. The return value indicates whether the value was successfully retrieved. This method has id ``3.8``. - :cpp:expr:`state`: Output parameter. Methods inherited from :ref:`ocaagent`: - :ref:`OcaAgent::GetClassIdentification ` - :ref:`OcaAgent::GetLockable ` - :ref:`OcaAgent::GetLockState ` - :ref:`OcaAgent::GetRole ` - :ref:`OcaAgent::SetLockNoWrite ` - :ref:`OcaAgent::SetLockNoReadWrite ` - :ref:`OcaAgent::Unlock ` - :ref:`OcaAgent::GetLabel ` - :ref:`OcaAgent::GetOwner ` - :ref:`OcaAgent::GetPath ` - :ref:`OcaAgent::SetLabel `